package com.example.gymmanagement.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class LoginParam  {
    private long userId;
    private String userPassword;


    public long getUserId() {
        return userId;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LoginParam that = (LoginParam) o;
        return userId == that.userId && Objects.equals(userPassword, that.userPassword);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userPassword);
    }
}
